#include "head_2.h"

extern pthread_cond_t cond_analysis;

extern linknode *H_trf;
extern linknode *E_trf;

extern linknode *H_sql;
extern linknode *E_sql;

void * pthread_transfer (void *arg) {

	int sockfd = (int)arg;
	sendEnv info;

	while(1) {

		recv(sockfd, &info, sizeof(sendEnv), 0);
		head_insert(H_trf, info);
		pthread_cond_signal (&cond_analysis);
	}
}